﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.OracleClient;
using System.Collections.Generic;
using Telerik.Web.UI;


public partial class OnlyUsedForTest : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        DataTable dt = new DataTable();
        dt.Columns.Add("1");
        dt.Columns.Add("2");
        dt.Rows.Add(new String[] { "一", "二" });
        GridBoundColumn bc = new GridBoundColumn();
        bc.HeaderText = bc.DataField = bc.UniqueName = "1";
        RadGrid1.MasterTableView.Columns.Add(bc);
        bc = new GridBoundColumn();
        bc.HeaderText = bc.DataField = bc.UniqueName = "2";
        bc.Visible = false;
        RadGrid1.MasterTableView.Columns.Add(bc);
        RadGrid1.DataSource = dt;
        RadGrid1.DataBind();
        String s ="";
        for(int j=0;j <RadGrid1.Items[0].Cells.Count;j++){
            s=s+j+" : "+RadGrid1.Items[0].Cells[j].Text;
        }
        Response.Write(s);
    }
    protected void Button1_Click(object sender, EventArgs e)
    {

    }
    protected void Button2_Click(object sender, EventArgs e)
    {

    }
    protected void RadDatePicker1_SelectedDateChanged(object sender, Telerik.Web.UI.Calendar.SelectedDateChangedEventArgs e)
    {
        Response.Write(e.NewDate.Value.Year.ToString()+e.NewDate.Value.Month.ToString("D2"));
    }
}
